package com.ruicar.afs.cloud.channel.online.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruicar.afs.cloud.channel.online.condition.QuotaCondition;
import com.ruicar.afs.cloud.channel.online.entity.ChannelQuotaInfoTemp;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;

/**
 * @author limingzhi
 * @version 1.0
 * @date 2020/05/25 11:13
 */
public interface ChannelQuotaInfoService extends IService<ChannelQuotaInfoTemp> {

    void effectQuotaMethod(QuotaCondition condition, String busType);

    boolean QuotaToWorkFlowMethod(QuotaCondition condition,String busType) throws JsonProcessingException;

    void saveLog(ChannelQuotaInfoTemp quotaInfo, BigDecimal beforeChangeQuota);

    void handleExcelImport(MultipartFile file)  throws Exception;

    void handleCsvImport(MultipartFile file)  throws Exception;
}
